<!doctype html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<!--meta http-equiv="X-UA-Compatible" content="IE=8" /-->
	<title>jquery.blockUI-demo</title>
	<base target="_blank" />
	<script type="text/javascript" src="http://localhost:8080/xylon-framework-web/script/jquery/jquery-1.5.2.js"></script>
	<script type="text/javascript" src="http://localhost:8080/xylon-framework-web/script/jquery/jquery.blockUI.js"></script>
</head>
<body >
	<div style="margin-left: 500px; margin-top: 300px;">
		<input type="button" onclick="showBlock();" value="jquery.blockUI"/>
	</div>
</body>
<script language="JavaScript">  
function showBlock(){  
       jQuery.blockUI({ 
    	   message: "处理中，请稍候...",
    	   css: {color:'#fff',border:'3px solid #aaa',backgroundColor:'#CC3300'},
    	   overlayCSS: { opacity:'0.0' }
    	   });  
       setTimeout('hideBlock()',2000);//2000毫秒后调用hideBlock()  
}  
function hideBlock(){  
  jQuery.unblockUI();  
}  
</script> 
</html>
